/**
*┌──────────────────────────────────────────────────────────────┐
*│　描    述：服务费(手续费)                                                    
*│　作    者：gaotang                                              
*│　版    本：1.0   模板代码自动生成                                              
*│　创建时间：2019-01-29 17:12:18                            
*└──────────────────────────────────────────────────────────────┘
*┌──────────────────────────────────────────────────────────────┐
*│　命名空间: BestTrader.Cms.Models                                  
*│　类    名：ServiceCharge                                     
*└──────────────────────────────────────────────────────────────┘
*/
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace BestTrader.Cms.Models
{
	/// <summary>
	/// gaotang
	/// 2019-01-29 17:12:18
	/// 服务费(手续费)
	/// </summary>
	[Table("ServiceCharge")]
	public class ServiceCharge
	{
		/// <summary>
		/// 主键
		/// </summary>
		[Key]
		public Int32 Id {get;set;}

		/// <summary>
		///  
		/// </summary>
		[MaxLength(16)]
		public String ProjectCode {get;set;}

		/// <summary>
		///  
		/// </summary>
		[MaxLength(16)]
		public String ProjectUnit {get;set;}

        /// <summary>
        ///  
        /// </summary>
        [MaxLength(18)]
        public Decimal? ProjectPrice { get; set; }

        /// <summary>
        ///  佣金
        /// </summary>
        [MaxLength(18)]
        public Decimal? AgentTrade { get; set; }

        /// <summary>
        ///  成本 
        /// </summary>
        [MaxLength(18)]
        public Decimal? SalesTrade { get; set; }

        /// <summary>
        ///  
        /// </summary>
        [MaxLength(64)]
		public String ProjectName {get;set;}

		/// <summary>
		///  
		/// </summary>
		[Required]
		[MaxLength(10)]
		public DateTime ProjectTime {get;set;}

		/// <summary>
		/// 添加人
		/// </summary>
		[Required]
		[MaxLength(10)]
		public Int32 AddManagerId {get;set;}

		/// <summary>
		/// 添加时间
		/// </summary>
		[Required]
		[MaxLength(23)]
		public DateTime AddTime {get;set;}

        /// <summary>
        /// 修改人
        /// </summary>
        [MaxLength(10)]
        public Int32? ModifyManagerId { get; set; }

        /// <summary>
		/// 修改人
		/// </summary>
		[MaxLength(10)]
        public Int32? ProjectManagerId { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [MaxLength(23)]
		public DateTime? ModifyTime {get;set;}

        /// <summary>
        /// 是否删除
        /// </summary>
        [Required]
        [MaxLength(1)]
        public Boolean IsDelete { get; set; }

        /// <summary>
		/// 是否是默认规则
		/// </summary>
		[Required]
        [MaxLength(1)]
        public Boolean IsDefault { get; set; }


    }
}
